﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Blue - Crea account
</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Crea nuovo account</h2>
    <p>
        Utilizza il modulo seguente per creare un nuovo account
    </p>
    <p>
        La nuova password deve contenere un minimo di
        <%=Html.Encode(ViewData["PasswordLength"])%>
        caratteri.
    </p>
    <%= Html.ValidationSummary(Messages.ErrorInsertingData)%>
    <% using (Html.BeginForm())
       { %>
    <div>
        <fieldset>
            <legend>Dati dell'account</legend>
            <p>
                <label for="username">
                    Nome utente:</label>
                <%= Html.TextBox("username") %>
                <%= Html.ValidationMessage("username") %>
            </p>
            <p>
                <label for="email">
                    Email:</label>
                <%= Html.TextBox("email") %>
                <%= Html.ValidationMessage("email") %>
            </p>
            <p>
                <label for="password">
                    Password:</label>
                <%= Html.Password("password") %>
                <%= Html.ValidationMessage("password") %>
            </p>
            <p>
                <label for="confirmPassword">
                    Conferma password:</label>
                <%= Html.Password("confirmPassword") %>
                <%= Html.ValidationMessage("confirmPassword") %>
            </p>
            <p>
                <input type="submit" value="Crea account" />
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>
